/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Universidad de La Frontera
 * License Type: Academic
 */
package orm;

public class Cliente {
	public Cliente() {
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_CLIENTE_ID_ADMIN) {
			this.id_admin = (orm.Administracion) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int id;
	
	private String nombre;
	
	private String apellido_m;
	
	private String apellido_p;
	
	private String celular;
	
	private String correo;
	
	private String direccion;
	
	private String rut;
	
	private String dv;
	
	private orm.Administracion id_admin;
	
	private void setId(int value) {
		this.id = value;
	}
	
	public int getId() {
		return id;
	}
	
	public int getORMID() {
		return getId();
	}
	
	/**
	 * Nombre
	 */
	public void setNombre(String value) {
		this.nombre = value;
	}
	
	/**
	 * Nombre
	 */
	public String getNombre() {
		return nombre;
	}
	
	/**
	 * Apellido Materno
	 */
	public void setApellido_m(String value) {
		this.apellido_m = value;
	}
	
	/**
	 * Apellido Materno
	 */
	public String getApellido_m() {
		return apellido_m;
	}
	
	/**
	 * Apellido Paterno
	 */
	public void setApellido_p(String value) {
		this.apellido_p = value;
	}
	
	/**
	 * Apellido Paterno
	 */
	public String getApellido_p() {
		return apellido_p;
	}
	
	/**
	 * Celular
	 */
	public void setCelular(String value) {
		this.celular = value;
	}
	
	/**
	 * Celular
	 */
	public String getCelular() {
		return celular;
	}
	
	/**
	 * Correo
	 */
	public void setCorreo(String value) {
		this.correo = value;
	}
	
	/**
	 * Correo
	 */
	public String getCorreo() {
		return correo;
	}
	
	/**
	 * Direccion
	 */
	public void setDireccion(String value) {
		this.direccion = value;
	}
	
	/**
	 * Direccion
	 */
	public String getDireccion() {
		return direccion;
	}
	
	/**
	 * Rut
	 */
	public void setRut(String value) {
		this.rut = value;
	}
	
	/**
	 * Rut
	 */
	public String getRut() {
		return rut;
	}
	
	/**
	 * Digito verificador
	 */
	public void setDv(String value) {
		this.dv = value;
	}
	
	/**
	 * Digito verificador
	 */
	public String getDv() {
		return dv;
	}
	
	public void setId_admin(orm.Administracion value) {
		if (id_admin != null) {
			id_admin.cliente.remove(this);
		}
		if (value != null) {
			value.cliente.add(this);
		}
	}
	
	public orm.Administracion getId_admin() {
		return id_admin;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Id_admin(orm.Administracion value) {
		this.id_admin = value;
	}
	
	private orm.Administracion getORM_Id_admin() {
		return id_admin;
	}
	
	public String toString() {
		return String.valueOf(getId());
	}
	
}
